﻿using Microsoft.EntityFrameworkCore;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using T.E.ERP.Domains.Clients;

using T.E.ERP.Domains.Materials;
using T.E.ERP.Domains.Storages;

namespace T.E.ERP.Infrastructrue
{
    /// <summary>
    /// 数据上下文
    /// </summary>
    public class SCDBContext : DbContext
    {
        public SCDBContext(DbContextOptions options) : base(options)
        {
        }
        /// <summary>
        /// 物料基本档
        /// </summary>
        public DbSet<Material_BasicModel> material_Basics {  get; set; } 
        /// <summary>
        /// 物料分类
        /// </summary>
        public DbSet<MaterialCategoryModel> materialCategories { get; set; }
        /// <summary>
        /// 供应方式
        /// </summary>
        public DbSet<SupplyMethodModel> supplyMethods { get; set; }
        /// <summary>
        /// 计量单位
        /// </summary>
        public DbSet<UnitOfMeasurementModel> unitOfMeasurements { get; set; }

        //=============================================================================================

        /// <summary>
        /// 客户档案
        /// </summary>
        public DbSet<CustomerProfiles> CustomerProfiles { get; set; }
        /// <summary>
        /// 开票信息
        /// </summary>
        public DbSet<InvoicingInformation> InvoicingInformation { get; set; }
        /// <summary>
        /// 业务联系人
        /// </summary>
        public DbSet<BusinessContacts> BusinessContacts { get; set; }
        /// <summary>
        /// 仓库列表
        /// </summary>
        public DbSet<BaseStorage> BaseStorage { get; set; }
        /// <summary>
        /// 货位表
        /// </summary>
        public DbSet<Freight> Freight { get; set; }


    }
}
